package com.car.dal.dao.recruitment;




import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.dao.recruitment.RecruitmentDao;
import com.car.dal.object.TgRecruitment;
import com.car.util.Page;


public class RecruitmentDaoImp extends IbatisCommonDao<TgRecruitment, Long> implements RecruitmentDao {

	@Override
	public List<TgRecruitment> getTgRecruitmentByType(
			TgRecruitment tgRecruitment, Page page) {
		tgRecruitment.setPagesize(page.getPagesize());
		tgRecruitment.setFirstrownum(page.getFirstrownum());
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType", tgRecruitment);
	}

	@Override
	public Integer getTgCountRecruitmentByType(TgRecruitment tgRecruitment) {
		Integer c=this.queryForInteger("getTgCountRecruitmentByType", tgRecruitment);
		return c;
	}

	@Override
	public List<TgRecruitment> getTgRecruitmentByType1(
			TgRecruitment tgRecruitment) {
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType1", tgRecruitment);
	}

	@Override
	public List<TgRecruitment> getTgRecruitmentByType2(
			TgRecruitment tgRecruitment) {
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType2", tgRecruitment);
	}

	@Override
	public List<TgRecruitment> getTgRecruitmentByType3(
			TgRecruitment tgRecruitment) {
		 
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType3", tgRecruitment);
	}

	@Override
	public Integer getTgCountRecruitmentByType1(TgRecruitment tgRecruitment) {
		Integer c=this.queryForInteger("getTgCountRecruitmentByType1", tgRecruitment);
		return c;
	}

	@Override
	public List<TgRecruitment> getTgRecruitmentByType4(
			TgRecruitment tgRecruitment, Page page) {
		tgRecruitment.setPagesize(page.getPagesize());
		tgRecruitment.setFirstrownum(page.getFirstrownum());
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType4", tgRecruitment);
	}

	@Override
	public List<TgRecruitment> getTgRecruitment(TgRecruitment tgRecruitment) {
		
		List<TgRecruitment> list = this.queryForEntityList(TgRecruitment.class, "getTgRecruitment", tgRecruitment);
		return list;
	}

	@Override
	public List<TgRecruitment> findByName(TgRecruitment recruitment) {
		return this.queryForEntityList(TgRecruitment.class, "getTgRecruitmentByType5", recruitment);
	}
   
}
